﻿using System;

namespace diantou.web.onlineJudge
{
    /// <summary>
    /// 用户排行
    /// </summary>
    struct userRank
    {
        /// <summary>
        /// 用户
        /// </summary>
        public diantou.dataAccess.user User;
        /// <summary>
        /// 排行
        /// </summary>
        public int Index;
        /// <summary>
        /// 是否当前用户
        /// </summary>
        public bool IsSelf;
        /// <summary>
        /// 设置用户排行
        /// </summary>
        /// <param name="user"></param>
        /// <param name="index"></param>
        /// <param name="isSelf"></param>
        public void Set(diantou.dataAccess.user user, int index, bool isSelf)
        {
            User = user;
            Index = index;
            IsSelf = isSelf;
        }
    }
}
